package com.ywjt.platformbusiness.my.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.platformbusiness.R;
import com.ywjt.platformbusiness.my.model.SignInfoModel;

import java.util.List;


public class SignRecordAdapter extends BaseQuickAdapter<SignInfoModel.ResultDTO.SignInListDTO, BaseViewHolder> {
    private int integral=0;

    public SignRecordAdapter(List<SignInfoModel.ResultDTO.SignInListDTO> data,int integral) {
        super(R.layout.item_sign_record, data);
        this.integral=integral;
    }

    @Override
    protected void convert(BaseViewHolder helper, SignInfoModel.ResultDTO.SignInListDTO item) {
        helper.setText(R.id.tvCreateTime,"签到时间："+item.getCreateTime());
        helper.setText(R.id.tvIntegral,"+"+integral);
    }
}
